package org.gdtc.storefront.service;

import org.gdtc.storefront.entity.Notice;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;

@RequestMapping("/NoticeService")
public interface NoticeService {

    @RequestMapping("/deleteByPrimaryKey")
    int deleteByPrimaryKey(@RequestParam("id") Integer id);

    @RequestMapping("/insert")
    int insert(@RequestBody Notice notice);

    @RequestMapping("/selectByPrimaryKey")
    Notice selectByPrimaryKey(@RequestParam("id") Integer id);

    @RequestMapping("/selectAll")
    List<Notice> selectAll();

    @RequestMapping("/updateByPrimaryKey")
    int updateByPrimaryKey(@RequestBody Notice record);



}
